package com.eastdigit.bpm.identity;

import java.util.List;

import org.activiti.engine.identity.Group;
import org.activiti.engine.identity.User;
import org.springframework.beans.factory.annotation.Autowired;

public class UserEntityManager extends org.activiti.engine.impl.persistence.entity.UserEntityManager {
    @Autowired
    private GroupEntityManager groupEntityManager;

    @Override
    public User findUserById(String userId) {

        return super.findUserById(userId);
    }

    @Override
    public List<Group> findGroupsByUser(String userId) {
        return groupEntityManager.findGroupsByUser(userId);
    }

}
